<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>06_浮动布局小练习</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      .leftfix {
        float: left;
      }
      .rightfix {
        float: right;
      }
      .clearfix::after {
        content: '';
        display: block;
        clear: both;
      }
      .container {
        width: 960px;
        margin: 0 auto;
        text-align: center;
      }

      .top-module {
        line-height: 80px;
        .logo {
          width: 200px;
          height: 80px;
          background: #ccc;
        }
        .banner1 {
          width: 540px;
          height: 80px;
          margin-left: 10px;
          background-color: #ccc;
        }
        .banner2 {
          margin-left: 10px;
          width: 200px;
          height: 80px;
          background-color: #ccc;
        }
      }
      .menu {
        width: 960px;
        height: 30px;
        line-height: 30px;
        margin-top: 10px;
        background-color: #ccc;
      }

      .center-module {
        margin-top: 10px;
        .left-block {
          .top-item {
            .column {
              width: 368px;
              height: 198px;
              line-height: 198px;
              border: 1px solid black;
            }
            .column2 {
              margin-left: 10px;
            }
          }

          .bottom-item {
            margin-top: 10px;
          }

          .column3,
          .column4,
          .column5,
          .column6 {
            width: 178px;
            height: 198px;
            line-height: 198px;
            border: 1px solid black;
          }

          .column4,
          .column5,
          .column6 {
            margin-left: 10px;
          }
        }

        .column7,
        .column8,
        .column9 {
          width: 198px;
          height: 128px;
          line-height: 128px;
          border: 1px solid black;
        }
        .column8 {
          margin: 10px 0;
        }
      }
      .page-bottom {
        width: 960px;
        height: 60px;
        line-height: 60px;
        margin-top: 10px;
        background-color: #ccc;
      }
    </style>
  </head>

  <body>
    <div class="container">
      <!-- 头部 -->
      <div class="top-module clearfix">
        <div class="logo leftfix">logo</div>
        <div class="banner1 leftfix">banner1</div>
        <div class="banner2 leftfix">banner2</div>
      </div>
      <!-- 菜单 -->
      <div class="menu">菜单</div>

      <!-- 内容区 -->
      <div class="center-module clearfix">
        <!-- 左侧 -->
        <div class="left-block leftfix">
          <!-- 上 -->
          <div class="top-item clearfix">
            <div class="column column1 leftfix">栏目一</div>
            <div class="column column2 leftfix">栏目二</div>
          </div>
          <!-- 下 -->
          <div class="bottom-item clearfix">
            <div class="column3 leftfix">栏目三</div>
            <div class="column4 leftfix">栏目四</div>
            <div class="column5 leftfix">栏目五</div>
            <div class="column6 leftfix">栏目六</div>
          </div>
        </div>

        <!-- 右侧 -->
        <div class="right-block rightfix">
          <div class="column7">栏目七</div>
          <div class="column8">栏目八</div>
          <div class="column9">栏目九</div>
        </div>
      </div>
      <!-- 页脚 -->
      <div class="page-bottom">页脚</div>
    </div>
  </body>
</html>
